import { Module } from '@nestjs/common';
import { ScheduleModule } from '@nestjs/schedule';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './auth/auth.module';
import { PrismaModule } from './prisma/prisma.module';
import { TasksService } from './schedule/tasks.service';
import { SendMailModule } from './send.mail/send.mail.module';
import { SpiderModule } from './spider/spider.module';
import { CommonModule } from './common/common.module';

@Module({
  imports: [
    AuthModule,
    PrismaModule,
    SendMailModule,
    ScheduleModule.forRoot(),
    SpiderModule,
    CommonModule,
  ],
  controllers: [AppController],
  providers: [AppService, TasksService],
})
export class AppModule {}
